package com.iris.live.services.common.config;

public class Constants {

	/**
	 * 前端页面敏感程度
	 */
	public static final Integer SENSITIVITY_NO = 0;//0:不敏感
	public static final Integer SENSITIVITY_YES = 1;// 1:敏感

	/**
	 * 时间格式
	 */
	public static final String DATE_FORMAT = "yyyy-MM-dd";
	public static final String TIME_FORMAT = "HH:mm:ss";
	public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
	public static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss.S";

	// http获取响应类型(all:所有，responseStr:网页字符串，cookies：网页cookies)
	public final static int HTTP_SUCCESS = 200; //所有逻辑都正确
	public final static int HTTP_ERROR = 400; //访问正常但逻辑有误,app端要显示message信息
	public final static int HTTP_800 = 800;//订单重复 800
	public final static int HTTP_401 = 401;
	public final static int HTTP_404 = 404;
	public final static int HTTP_500 = 500;
	public final static int HTTP_411 = 411;//请求参数有误
	public final static int HTTP_412 = 412;//请求超时
	public final static int HTTP_413 = 413;//签名有误

	/** 返回key */
	public final static String STATUS = "status"; //状态
	public final static String MESSAGE = "message"; //状态说明
	public final static String TYPE = "type"; //状态类型
	public final static String CODE ="code";//返回状态码标志
	public final static String RESULT = "result";
	public final static String ERROR_CODE = "errorCode";
	public final static String DATA = "data";
	public final static String RESPONSE_FIELD_FLAG = "flag";
	/** 返回结果 */
	public final static String SUCCESS = "success";
	public final static String FAILURE = "fail";

	/**
	 * 保险合作汇总报表框架使用字段
	 */
	public static final String DEALER_KEY = "selDealerCode";//经销商key值
	public static final String FRAMEWORK_KEY = "displayType";//架构key值


	//方法入口定义
	public static  final  int METHOD_TYPE_INSERT = 1;//新增
	public static  final  int METHOD_TYPE_UPDATE = 2;//更新
	public static  final  int METHOD_TYPE_DELETE = 3;//删除

	//基础版本定义
	public static  final  int VERSION_LSH_ONE = 1;//1：利星行为基础的版本
	public static  final  int VERSION_DCH_TWO = 2;//2：大昌行为基础的版本

}
